]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
welcomeDialog: Fix title translation
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 5 Oct 2021 13:05:18 +0000 (15:05 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 5 Oct 2021 13:05:18 +0000 (15:05 +0200)
Translators translate the format string ('... GNOME %s'), not the
substituted one ('... GNOME 41').

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4669

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1998>

js/ui/welcomeDialog.js

index cf6540fe230e3fec6a914eed0c0be04691d6a0e4..9d99f0035f374f93c4edf747963e3d8ae8cb17c4 100644 (file)
@@ -33,7 +33,7 @@ class WelcomeDialog extends ModalDialog.ModalDialog {
 
     _buildLayout() {
         const [majorVersion] = Config.PACKAGE_VERSION.split('.');
-        const title = _('Welcome to GNOME %s'.format(majorVersion));
+        const title = _('Welcome to GNOME %s').format(majorVersion);
         const description = _('If you want to learn your way around, check out the tour.');
         const content = new Dialog.MessageDialogContent({ title, description });